/*    */ package com.sd.chat;
/*    */ 
/*    */ import java.io.File;
/*    */ import java.io.PrintStream;
/*    */ import java.net.URL;
/*    */ import javax.swing.ImageIcon;
/*    */ 
/*    */ public class Utils
/*    */ {
/*    */   public static final String jpeg = "jpeg";
/*    */   public static final String jpg = "jpg";
/*    */   public static final String gif = "gif";
/*    */   public static final String tiff = "tiff";
/*    */   public static final String tif = "tif";
/*    */   public static final String png = "png";
/*    */   public static final String mpg = "mpg";
/*    */   public static final String mpeg = "mpeg";
/*    */   public static final String avi = "avi";
/*    */   public static final String wmv = "wmv";
/*    */   public static final String flv = "flv";
/*    */ 
/*    */   public static String getExtension(File f)
/*    */   {
/* 28 */     String ext = null;
/* 29 */     String s = f.getName();
/* 30 */     int i = s.lastIndexOf('.');
/*    */ 
/* 32 */     if ((i > 0) && (i < s.length() - 1)) {
/* 33 */       ext = s.substring(i + 1).toLowerCase();
/*    */     }
/* 35 */     return ext;
/*    */   }
/*    */ 
/*    */   protected static ImageIcon createImageIcon(String path)
/*    */   {
/* 40 */     URL imgURL = Utils.class.getResource(path);
/* 41 */     if (imgURL != null) {
/* 42 */       return new ImageIcon(imgURL);
/*    */     }
/* 44 */     System.err.println("Couldn't find file: " + path);
/* 45 */     return null;
/*    */   }
/*    */ }

/* Location:           C:\Users\Rumors\Desktop\gftpuploader.jar
 * Qualified Name:     geniusFiles.Utils
 * JD-Core Version:    0.5.4
 */